home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / croutes.zip / SCONTROL.H < prev    next >
Text File  |  1984-05-04  |  2KB  |  51 lines

  1. /*                       *** scontrol.h ***                          */
  2. /*                                                                   */
  3. /* IBM - PC microsoft "C"                                            */
  4. /*                                                                   */
  5. /* Header file used by the screen and keyboard control library that  */
  6. /* defines the various commands.  The extended screen and keyboard   */
  7. /* device driver must be configured into DOS before these commands   */
  8. /* will work.                                                        */
  9. /*                                                                   */
  10. /* Written by L. Cuthbertson, March 1984                             */
  11. /*                                                                   */
  12. /*********************************************************************/
  13. /*                                                                   */
  14.  
  15. /* cursor control */
  16.  
  17. char CUP[7] = {'\033','[','#',';','#','H','\000'};
  18. char CUU[5] = {'\033','[','#','A','\000'};
  19. char CUD[5] = {'\033','[','#','B','\000'};
  20. char CUF[5] = {'\033','[','#','C','\000'};
  21. char CUB[5] = {'\033','[','#','D','\000'};
  22.  
  23. char HVP[7] = {'\033','[','#',';','#','f','\000'};
  24. char DSR[5] = {'\033','[','6','n','\000'};
  25. char CPR[7] = {'\033','[','#',';','#','R','\000'};
  26. char SCP[4] = {'\033','[','s','\000'};
  27. char RCP[4] = {'\033','[','u','\000'};
  28.  
  29. /* erase controls */
  30.  
  31. char ED[5] = {'\033','[','#','J','\000'};
  32. char EL[5] = {'\033','[','#','K','\000'};
  33.  
  34. /* mode of operation */
  35.  
  36. char SGR[5] = {'\033','[','#','m','\000'};
  37. char SM[6] = {'\033','[','=','#','h','\000'};
  38. char RM[6] = {'\033','[','=','#','l','\000'};
  39.  
  40. /* keyboard reassignment */
  41.  
  42. char KEY[5] = {'\033','[','#','p','\000'};
  43.  
  44. /* other odds and ends */
  45.  
  46. #define NULL '\000'
  47. #define ESC '\033'
  48. #define POUND '#'
  49. #define LBRACK '['
  50. #define SEMI ';'
  51.